//跳转路由功能
/**
 * @param {当前对象} that
 * @param {路由的名字} name 
 * @param {可能要传的数据} data 
 */
function skip(that, name, data) {
    if (that.$route.name != name) {
        that.$router.push({
            name,
            query: data
        })
    }
}

export {
    skip
}